package exception;

public class ThrowDemo {
    public static void main(String[] args) {
        Person person=new Person();
        try {
            person.setAge(111);//满足语法但不满足业务场景；
        } catch (IllegalAgeExpection e) {
            e.printStackTrace();

        }

        System.out.println("年纪"+person.getAge());
    }
}
